package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.OaProjectNumberMapper;
import com.ruoyi.system.domain.OaProjectNumber;
import com.ruoyi.system.service.IOaProjectNumberService;

/**
 * 项目编号Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-10
 */
@Service
public class OaProjectNumberServiceImpl implements IOaProjectNumberService 
{
    @Autowired
    private OaProjectNumberMapper oaProjectNumberMapper;

    /**
     * 查询项目编号
     * 
     * @param id 项目编号主键
     * @return 项目编号
     */
    @Override
    public OaProjectNumber selectOaProjectNumberById(Long id)
    {
        return oaProjectNumberMapper.selectOaProjectNumberById(id);
    }

    /**
     * 查询项目编号列表
     * 
     * @param oaProjectNumber 项目编号
     * @return 项目编号
     */
    @Override
    public List<OaProjectNumber> selectOaProjectNumberList(OaProjectNumber oaProjectNumber)
    {
        return oaProjectNumberMapper.selectOaProjectNumberList(oaProjectNumber);
    }

    /**
     * 新增项目编号
     * 
     * @param oaProjectNumber 项目编号
     * @return 结果
     */
    @Override
    public int insertOaProjectNumber(OaProjectNumber oaProjectNumber)
    {
        return oaProjectNumberMapper.insertOaProjectNumber(oaProjectNumber);
    }

    /**
     * 修改项目编号
     * 
     * @param oaProjectNumber 项目编号
     * @return 结果
     */
    @Override
    public int updateOaProjectNumber(OaProjectNumber oaProjectNumber)
    {
        return oaProjectNumberMapper.updateOaProjectNumber(oaProjectNumber);
    }

    /**
     * 批量删除项目编号
     * 
     * @param ids 需要删除的项目编号主键
     * @return 结果
     */
    @Override
    public int deleteOaProjectNumberByIds(Long[] ids)
    {
        return oaProjectNumberMapper.deleteOaProjectNumberByIds(ids);
    }

    /**
     * 删除项目编号信息
     * 
     * @param id 项目编号主键
     * @return 结果
     */
    @Override
    public int deleteOaProjectNumberById(Long id)
    {
        return oaProjectNumberMapper.deleteOaProjectNumberById(id);
    }
}
